export enum E_QUESTION {
  CHECKBOX = 1,
  SELECT = 0
}

export interface IOption {
  value: number
  label: string
}

export interface IQuestion {
  type: E_QUESTION
  description: string
  options: IOption[]
  answer: number
}

export interface IChapter {
  title: string
  questions: IQuestion[]
}

export interface ICourse {
  title: string
  chapters: IChapter[]
}

export interface IAnsweredQuestion {
  id: string
  error: boolean
}

export interface IAnsweredCourse {
  id: string
  questions: IAnsweredQuestion[]
}
